home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 050a / snr53b.zip / NOCODES.S < prev    next >
Text File  |  1993-05-30  |  2KB  |  49 lines

  1. \  NOCODES.S
  2. \  demo test table
  3.  
  4. \  You can test this table by typing:
  5. \  C>snr pentatst.doc con nocodes.s
  6.  
  7. \  This table will remove all instances of Penta system typesetting codes
  8. \  from a disk file. A Penta system is an old second-generation typesetting
  9. \  composition machine which uses embedded formatting codes. Some modern
  10. \  DTP programs such as Ventura Publisher and Quark Xpress have a similar
  11. \  coding scheme, although not as involved.
  12.  
  13. \  Of course, this table can be cobbled up to remove typesetting codes
  14. \  for other systems, such as Compugraphic MCS or CCI; you'll need to have
  15. \  a fairly comprehensive knowledge of the typesetting commands for whatever
  16. \  system you choose to process.
  17.  
  18. [\y\y\n=*ig       \ MOST Penta commands begin with a square bracket
  19.                   \ followed by two alpha characters and a numeric character.
  20.                   \ Begin global ignore (that is, start ignoring everything
  21.                   \ until a string that cancels global ignore is encountered
  22.                   \ in the data stream)
  23.  
  24. [\y\n=*ig         \ Some Penta commands, such as format calls, begin with
  25.                   \ only one alpha character followed by a numeral. Begin
  26.                   \ global ignore
  27.  
  28. ]=*ix             \ A right square bracket is the end of command;
  29.                   \ also cancel global ignore
  30.  
  31. \0d\0a=\0d\0a*ix  \ We'll make an end of a line cancel global ignore also
  32.  
  33. [\y\y=            \ Some Penta commands consist only of a single bracket
  34.                   \ followed by two alpha characters. We'll just ignore them.
  35.  
  36. [nt\n=<TAB>\p3    \ "next tab" command -- this is explicitly defined so
  37.                   \ that we don't accidentally throw it away if it's followed
  38.                   \ by a number.
  39.  
  40. [nt=<TAB>         \ This is different from the one above. (Why? because not
  41.                   \ all "next tab" commands will be followed by numbers,
  42.                   \ that's why. And if we don't define it explicitly, it will
  43.                   \ be thrown out.
  44.  
  45. [bt\n=\p3         \ same with "begin tab" command. There may be others that
  46.                   \ fit the same pattern of use, but this is a skeleton table,
  47.                   \ so they aren't defined here. Add commands as you need to.
  48.  
  49.